<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>翔天信贷软件管理系统</title>
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/reset.css" />
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/main.css" />
<!--[if lte IE 6]><link rel="stylesheet" media="screen,projection" type="text/css" href="css/main-ie6.css" /><![endif]-->
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/style.css" />
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/mystyle.css" />
<link href="css/grid/grid.css" type="text/css" rel="stylesheet"
	media="screen" />
<link href="css/calendar.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/textbox.js"></script>

<script type="text/javascript" src="js/aa.js"></script>
<script type="text/javascript" src="js/cal.js"></script>



</head>
<body>
	<html:form action="writeReceipt" method="post">
		<input type="hidden" name="callMethod" id="callMethod"
			value="submitUser" />

		<html:hidden property="userVO.id" styleId="userVO.id" />
		<html:hidden property="userVO.workflowid" styleId="userVO.workflowid" />
			<%@include file="/front/head.jsp"%>
			<logic:equal value="1" name="buser" property="roleid">
				<div id="menu" class="row">
					<div class="column grid_16">
						<ul class="box">
							<logic:equal value="0" name="historyCount">
								<li id="menu-active"><a href="#"><strong><span>当前共处理过&nbsp;<b class="red">0</b>&nbsp;条客户资料 </span> </strong></a></li>
							</logic:equal>

							<logic:notEqual value="0" name="historyCount">
								<li id="menu-active"><html:link	href="writeReceipt.do?callMethod=returnTohistoryList"><strong><span>当前共处理过&nbsp;<b class="red"><%=request.getAttribute("historyCount")%></b>&nbsp;条客户资料</span>	</strong></html:link></li>
							</logic:notEqual>
							
							
							<li id="menu-active"><html:link	href="writeReceipt.do?callMethod=returnTobackList"><strong><span>当前共有退回&nbsp;<b class="red"><%=request.getAttribute("returnCount")%></b>&nbsp;条客户资料</span>	</strong></html:link></li>
						</ul>
					</div>
				</div>
			</logic:equal>
			
<div id="content"  class="row ireadonly">
  <div class="column grid_16">
   <h4 class="tit">客户基本资料</h4>
   <fieldset>
<legend>本人基本资料</legend>
 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
  <tr>
    <td width="9%" style="text-align:right" >姓名:</td>
    <td width="16%"><html:text property="userVO.user_name" styleId="userVO.user_name"	styleClass="input-text" maxlength="6"/></td>
    <td width="9%" style="text-align:right">身份证:</td>
    <td width="16%"><html:text property="userVO.user_sn" styleId="userVO.user_sn"		styleClass="input-text" maxlength="18"/></td>
    <td width="9%" style="text-align:right">联系方式:</td>
    <td width="16%"><html:text property="userVO.user_phone" styleId="userVO.user_phone"	styleClass="input-text"  maxlength="12"/></td>
    <td width="9%" style="text-align:right">工作单位:</td>
    <td ><html:text property="userVO.user_workaddress" styleId="userVO.user_workaddress"  styleClass="input-text"  maxlength="20"/></td>
  </tr>
   <tr>
    <td width="9%" style="text-align:right" >婚姻状况:</td>
    <td>
    <logic:equal value="1" name="buser" property="roleid">
		<html:select property="userVO.marry" styleId="userVO.marry" onchange="marryNO();">
			<html:option value="1" >已婚</html:option>
			<html:option value="0" >未婚</html:option>
		</html:select>
		
	</logic:equal>
	<logic:notEqual value="1" name="buser" property="roleid">
		<nested:equal value="1"  property="userVO.marry">
			已婚
		</nested:equal>
		<nested:equal value="0"  property="userVO.marry">
			未婚
		</nested:equal>
	</logic:notEqual>
    
    </td>
    <td width="9%" style="text-align:right">所属区域:</td>
    <td>

<logic:equal value="1" name="buser" property="roleid">	
	
	<html:select property="userVO.areaid" styleId="userVO.areaid" onchange="changKhscf();">
	 	<html:optionsCollection  name="areaList" label="area" value="areaID"/>
	 </html:select>   
	    
    </logic:equal>
	<logic:notEqual value="1" name="buser" property="roleid">
		<nested:write  property="userVO.area"/>
	</logic:notEqual>
</td>
    <td width="9%" style="text-align:right">家庭地址:</td>
    <td ><html:text		property="userVO.user_address" styleId="userVO.user_address" styleClass="input-text"  maxlength="40"/></td>
  </tr>
  
  
  
  
  </table>
  </fieldset>
<logic:equal value="1" name="buser" property="roleid">  
<fieldset class="po">
<legend>配偶基本资料</legend>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
 
  <tr>
    <td width="9%" style="text-align:right" >姓名:</td>
    <td width="16%"><html:text property="userVO.wife_name" styleId="userVO.wife_name"				styleClass="input-text" maxlength="6"/></td>
    <td width="9%" style="text-align:right">身份证:</td>
    <td width="16%"><html:text property="userVO.wife_sn" styleId="userVO.wife_sn"				styleClass="input-text" maxlength="18" /></td>
    <td width="9%" style="text-align:right">联系方式:</td>
    <td width="16%"><html:text property="userVO.wife_phone" styleId="userVO.wife_phone" 		styleClass="input-text"  maxlength="12"/></td>
    <td  width="9%" style="text-align:right">工作单位:</td>
    <td><html:text	property="userVO.wife_workaddress" styleId="userVO.wife_workaddress" styleClass="input-text" maxlength="20"/></td>
  </tr>
  </table>
  </fieldset>
  </logic:equal>
  
  <logic:notEqual value="1" name="buser" property="roleid">
		<nested:equal value="1"  property="userVO.marry">
  <fieldset>
<legend>配偶基本资料</legend>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
 
  <tr>
    <td width="9%" style="text-align:right" >姓名:</td>
    <td width="16%"><html:text property="userVO.wife_name" styleId="userVO.wife_name"				styleClass="input-text" maxlength="6"/></td>
    <td width="9%" style="text-align:right">身份证:</td>
    <td width="16%"><html:text property="userVO.wife_sn" styleId="userVO.wife_sn"				styleClass="input-text" maxlength="18" /></td>
    <td width="9%" style="text-align:right">联系方式:</td>
    <td width="16%"><html:text property="userVO.wife_phone" styleId="userVO.wife_phone" 		styleClass="input-text"  maxlength="12"/></td>
    <td  width="9%" style="text-align:right">工作单位:</td>
    <td><html:text	property="userVO.wife_workaddress" styleId="userVO.wife_workaddress" styleClass="input-text" maxlength="20"/></td>
  </tr>
  </table>
  </fieldset>
  	</nested:equal>
  </logic:notEqual>
       <fieldset>
<legend>紧急联系人基本资料</legend>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
  <tr>
    <td  width="9%" style="text-align:right" >姓名:</td>
    <td width="16%"><html:text property="userVO.friend_name" styleId="userVO.friend_name"		styleClass="input-text"  maxlength="6"/></td>
    <td width="9%" style="text-align:right">身份证:</td>
    <td width="16%"><html:text property="userVO.friend_sn" styleId="userVO.friend_sn"		styleClass="input-text" maxlength="18" /></td>
    <td width="9%" style="text-align:right">联系方式:</td>
    <td width="16%"><html:text property="userVO.friend_phone" styleId="userVO.friend_phone"  maxlength="12"	styleClass="input-text" /></td>
    <td width="9%" style="text-align:right">工作单位:</td>
    <td><html:text	property="userVO.friend_workaddress" styleId="userVO.friend_workaddress" styleClass="input-text"  maxlength="20"/></td>
  </tr>
</table>
</fieldset>

<br />
  </div>
</div>

<aa:zone name="carZone">
				<input type="hidden" name="areaChange" id="areaChange" value="0" />
				
<div id="content"  class="row ireadonly">
  <div class="column grid_16">
   <h4 class="tit">车辆信息</h4>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" style="text-align: center;">	 	 	 	 	 	 	 	
  <tr>
    <td width="8%">车型</td>
    <td width="8%">车价</td>
    <td width="8%">车辆类型</td>
   <td width="4%">期限</td>
    <td width="8%"> 套餐</td>
    <td >预收</td>
    <td >手续费</td>
    <td >担保费</td>
    <td width="8%">客户审查费</td>
    <td width="8%">抵押公证费</td>
    <td >监管费</td>
    <td width="8%">车队服务费</td>
    <td width="8%">GPS费用</td>
    <td >保证金</td>
  </tr>
  <tr>
    <td><html:text property="userVO.car" styleClass="digital input-text90"  styleId="userVO.car" maxlength="10"/></td>
    <td><html:text property="userVO.jg" styleClass="digital input-text90" styleId="userVO.jg" maxlength="8"/></td>
    <td>
				
				<logic:equal value="1" name="buser" property="roleid">
				<html:select property="userVO.cllx_rate"			styleId="userVO.cllx_rate">
					<html:options collection="cllxList" labelProperty="cllx"	property="rate"/>
				</html:select>
				</logic:equal>
				
				<logic:notEqual value="1" name="buser" property="roleid">
					<nested:write property="userVO.cllx"/>&nbsp;&nbsp;&nbsp;
				</logic:notEqual></td>
    <td><logic:equal value="1" name="buser" property="roleid">
				<html:select property="userVO.qx" styleId="userVO.qx">
				<html:option value="1">1</html:option>
				<html:option value="2">2</html:option>
				<html:option value="3">3</html:option>
				<html:option value="4">4</html:option>
				<html:option value="5">5</html:option>
				</html:select>
				</logic:equal>
				
				<logic:notEqual value="1" name="buser" property="roleid">
					<nested:write property="userVO.qx"/>
				</logic:notEqual>
				</td>
    <td><logic:equal value="1" name="buser" property="roleid">
				<html:select property="userVO.tcid" styleId="userVO.tcid">
					<html:options collection="tcList" labelProperty="tc"
						property="tc_id" />
				</html:select>
				</logic:equal>
				
				<logic:notEqual value="1" name="buser" property="roleid">
					<nested:write property="userVO.tc"/>
				</logic:notEqual></td>
    <td><html:text readonly="true" property="userVO.ys"			styleClass="readonly digital input-text90"  /></td>
    <td><html:text readonly="true" property="userVO.sxf"		styleClass="readonly digital input-text90" /></td>
    <td><html:text readonly="true" property="userVO.dbf"		styleClass="readonly digital input-text90" /></td>
    <td><html:text readonly="true" property="userVO.khscf"		styleClass="readonly digital input-text90" /></td>
    <td><html:text property="userVO.dygzf" styleId="userVO.dygzf" styleClass="readonly digital input-text90" readonly="true"/></td>
    <td><html:text property="userVO.jgf" styleId="userVO.jgf" styleClass="readonly digital input-text90" readonly="true" /></td>
    <td>
    <logic:equal value="1" name="buser" property="roleid">
    <nested:define id="y1" property="userVO.cdfwf1" />
								<nested:define id="y2" property="userVO.cdfwf2" />
								<nested:define id="y3" property="userVO.cdfwf3" />
								
								<html:select property="userVO.cdfwf" styleId="userVO.cdfwf" onchange="changeCDFWF();">
								<html:option value="<%=y1.toString() %>">1年(<%=y1.toString() %>)</html:option>
								<html:option value="<%=y2.toString() %>">2年(<%=y2.toString() %>)</html:option>
								<html:option value="<%=y3.toString() %>">3年(<%=y3.toString() %>)</html:option>
								
								</html:select>
								
						
                                    
       </logic:equal>
       <logic:notEqual value="1" name="buser" property="roleid">
       <nested:write
										property="userVO.cdfwf" />
       </logic:notEqual>
    
    </td>
    <td>
     <logic:equal value="1" name="buser" property="roleid">
    <nested:define id="t1" property="userVO.gpsf1" />
								<nested:define id="t2" property="userVO.gpsf2" />
								<nested:define id="t3" property="userVO.gpsf3" />
								
								<html:select property="userVO.gpsf" styleId="userVO.gpsf" onchange="changeCDFWF();">
								<html:option value="<%=t1.toString() %>">1年(<%=t1.toString() %>)</html:option>
								<html:option value="<%=t2.toString() %>">2年(<%=t2.toString() %>)</html:option>
								<html:option value="<%=t3.toString() %>">3年(<%=t3.toString() %>)</html:option>
								
								</html:select>
								
						
                                    
       </logic:equal>
       <logic:notEqual value="1" name="buser" property="roleid">
       <nested:write
										property="userVO.gpsf" />
       </logic:notEqual>
    
    
    </td>
    <td><html:text readonly="true" property="userVO.bzj"		styleClass="readonly digital input-text90" /></td>
  </tr>
</table>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
  <tr>
    <td width="15%" style="text-align:right" >首付款：</td>
    <td width="10%" style="text-align:left" ><html:text readonly="true" property="userVO.shoufu"
							styleClass="readonly digital" styleId="userVO.shoufu" /></td>
    <td width="15%" style="text-align:right" >贷款额：</td>
    <td width="10%" style="text-align:left" ><html:text readonly="true" property="userVO.dke"
							styleClass="readonly digital" styleId="userVO.dke" /></td>
    <td width="15%" style="text-align:right" >应交款：</td>
    <td width="10%" style="text-align:left" ><html:text readonly="true" property="userVO.yjk"
							styleClass="readonly digital" /></td>
	<td width="20%" style="text-align:right;color:blue;" >月供：</td>
    <td style="text-align:left;" >
    <html:text property="userVO.mark"  style="height:20px;border:1px solid blue;" styleId="userVO.mark" />
  </td>							
							
							
  </tr>
  <tr>
  <td width="20%" >&nbsp;
  
  </td>
   <td colspan="5">
  应交款=首付款+预收+手续费+担保费+客户审查费+抵押公证费+监管费+车队服务费+GPS费+保证金
  </td>
  </tr>
</table>

<br />

<logic:notEqual value="1" name="buser" property="roleid">
					
					<table width="100%" >
						<tr>
								<nested:notEqual property="userVO.bzj_true" value="0">
									<td width="18%">银联维护保证金：</td>
									<td style="text-align: left;"><nested:write
											property="userVO.bzj_true" /></td>
								</nested:notEqual>

								<nested:notEqual property="userVO.dked" value="0">
									<td width="18%">财务维护垫款额：</td>
									<td style="text-align: left;"><nested:write
											property="userVO.dked" /></td>
								</nested:notEqual>

							
						</tr>
					</table>
		</logic:notEqual>
  </div>
</div>	
				
		<script type="text/javascript">
		
			$('#userVO\\.jg').blur(
					function() {
						
						
						if (isNaN($(this).val())) {
							alert('价格必须为数字！');
							$(this).val(1);							
						}
						
						if ($.trim($(this).val()) == '0') {
							$(this).val(1);
						} 
						
						if ($.trim($(this).val()) == '') {
							$(this).val(1);
						} 
						ajaxAnywhere.submitAJAX("getTCData", "carZone");
					});
			$('#userVO\\.cllx_rate').change(
					function() {
						ajaxAnywhere.submitAJAX("getTCData", "carZone");
						
					});
			
			
			function  changKhscf() {
				ajaxAnywhere.submitAJAX("getKhscf", "carZone");
				
			}
			
			
			function  changZone() {
				$('#areaChange').val(1);
				ajaxAnywhere.submitAJAX("getTCData", "carZone");
			}
			
			function  changeCDFWF(){
				ajaxAnywhere.submitAJAX("getTCData", "carZone");
			}
			
		
			$('#userVO\\.tcid').change(function() {
				ajaxAnywhere.submitAJAX("getTCData", "carZone");
			});
			
			
			function marryNO() {
				if($('#userVO\\.marry').val()=="0"){
					$('.po :input').attr('readonly','readonly');
					$('.po :input').addClass("readonly"); 
					$('.po :input').val(""); 
					$('#userVO\\.user_address').focus();
					$('.po').hide();
				}else{
					$('.po :input').removeAttr('readonly');
					$('.po :input').removeClass("readonly");
					$('.po').show();
				}
				
			}
			
			
			
			
			
			function checkValue(){
				
				
				if($.trim($('#userVO\\.user_name').val())==''){
					alert('客户姓名不能为空!');
					return false;
				}
				
				if($.trim($('#userVO\\.user_sn').val())==''){
					alert('客户身份证号不能为空!');
					return false;
				}
				var sfz=$.trim($('#userVO\\.user_sn').val());
				
				if(sfz.length<15||isNaN(sfz.substring(0,sfz.length-1))){
					alert('客户身份证号填写错误!');
					return false;
				}
				
				
				if($.trim($('#userVO\\.user_phone').val())==''){
					alert('客户联系方式不能为空!');
					return false;
				}
				if($.trim($('#userVO\\.user_workaddress').val())==''){
					alert('客户工作单位不能为空!');
					return false;
				}
				 if($.trim($('#userVO\\.marry').val())=='1'){
						if($.trim($('#userVO\\.wife_name').val())==''){
							alert('已婚，配偶姓名不能为空!');
							return false;
						}
						
						if($.trim($('#userVO\\.wife_sn').val())==''){
							alert('已婚，配偶身份证号不能为空!');
							return false;
						}
						
						var sfz=$.trim($('#userVO\\.wife_sn').val());
						var sfz1=$.trim($('#userVO\\.user_sn').val());
						
						if(sfz.length<15||isNaN(sfz.substring(0,sfz.length-1))){
							alert('已婚，配偶身份证号填写错误!');
							return false;
						}
						
						if(sfz==sfz1){
							alert("客户身份号不能和配偶身份证号相同!");
							return;
						}
						
						if($.trim($('#userVO\\.wife_phone').val())==''){
							alert('已婚，配偶联系方式不能为空!');
							return false;
						}
						if($.trim($('#userVO\\.wife_workaddress').val())==''){
							alert('已婚，配偶工作单位不能为空!');
							return false;
						}
				 }
				 
				 
				if($.trim($('#userVO\\.areaid').val())==''){
						alert('此业务员没有设置所属区域或所属区域没有配置套餐，请与管理员联系!');
						return false;
				}
				 
				 
				 if($.trim($('#userVO\\.friend_name').val())==''){
						alert('紧急联系人姓名不能为空!');
						return false;
					}
					
					if($.trim($('#userVO\\.friend_sn').val())==''){
						alert('紧急联系人身份证号不能为空!');
						return false;
					}
					sfz=$.trim($('#userVO\\.friend_sn').val());
					
					if(sfz.length<15||isNaN(sfz.substring(0,sfz.length-1))){
						alert('紧急联系人身份证号填写错误!');
						return false;
					}
					
					
					if($.trim($('#userVO\\.friend_phone').val())==''){
						alert('紧急联系人联系方式不能为空!');
						return false;
					}
					if($.trim($('#userVO\\.friend_workaddress').val())==''){
						alert('紧急联系人工作单位不能为空!');
						return false;
					}
				 
				
				
				if($.trim($('#userVO\\.user_address').val())==''){
					alert('客户家庭地址不能为空!');
					return false;
				}
				if($.trim($('#userVO\\.car').val())==''){
					alert('车辆类型不能为空!');
					return false;
				}
				if($.trim($('#userVO\\.jg').val())==''){
					alert('车辆价格不能为空!');
					return false;
				}
				
				if($.trim($('#userVO\\.jg').val())=='0'){
					alert('车辆价格不能为0!');
					return false;
				}
				
				if($.trim($('#userVO\\.cdfwf').val())=='0'){
					alert('请选择车队服务费!');
					return false;
				}
				
				
				if($.trim($('#userVO\\.mark').val())==''){
					alert('月供不能为空!');
					return false;
				}
				
				if (isNaN($.trim($('#userVO\\.mark').val()))) {
					alert('月供必须为数字！');
					return false;
				}
				
				if(!confirm("确认提交?")){
					return;
				}
				
				$("form").submit(); 
			}
			
			function approveUser(){
				
				
				
				if($("#userVO\\.bxh").length>0){
					if($.trim($("#userVO\\.bxh").val())==""){
						alert("请输入保险号！");
					}
				
					if($.trim($("#userVO\\.bxtime").val())=="点击选择日期"){
						alert("请选择保险办理日期！");
						return ;
					}
					
					if($.trim($("#userVO\\.bxcompany").val())==""){
						alert("请选择保险办理公司！");
						return ;
					}
					
					if($.trim($("#userVO\\.bxmoney").val())==""){
						alert("请选择保险办理费用！");
						return ;
					}
					
					if(isNaN($.trim($("#userVO\\.bxmoney").val()))){
						alert("保险办理费用必须为数字！");
						return ;
					}
					
					
					
				}
				
				
				if($("#userVO\\.xsz").length>0){
					
					if($.trim($("#userVO\\.xsz").val())==""){
						alert("请输入行驶证号！");
					}
					
					if($.trim($("#userVO\\.xstime").val())=="点击选择日期"){
						alert("请选择行驶证办理日期！");
						return ;
					}
					
					if($.trim($("#userVO\\.xscompany").val())==""){
						alert("请输入行驶证办理公司！");
						return ;
					}
					
					if($.trim($("#userVO\\.xsmoney").val())==""){
						alert("请输入行驶证办理费用！");
						return ;
					}
					
					
					if(isNaN($.trim($("#userVO\\.xsmoney").val()))){
						alert("行驶证办理费用必须为数字！");
						return ;
					}
				
					if(!$.trim($("#userVO\\.yyz").val())==""&&$.trim($("#userVO\\.xstime").val())=="点击选择日期"){
						alert("请选择营运证办理日期！");
						return ;
					}
					
					if(!$.trim($("#userVO\\.yyz").val())==""&&$.trim($("#userVO\\.yycompany").val())==""){
						alert("请输入营运证办理公司！");
						return ;
					}
					
					if(!$.trim($("#userVO\\.yyz").val())==""&&$.trim($("#userVO\\.yymoney").val())==""){
						alert("请输入营运证办理费用！");
						return ;
					}
					
					if(!$.trim($("#userVO\\.yyz").val())==""&&isNaN($.trim($("#userVO\\.yymoney").val()))){
						alert("营运证办理费用必须为数字！");
						return ;
					}
					
				
					
					
					
				}
				if(!confirm("确认提交?")){
					return;
				}
				
				
				$('#callMethod').val('approveUser');
				$("form").submit();
			}
			
			function returnToList(){
					  window.history.go(-1);
					  return false;
			}
			
			function fengcun(){
				if(!confirm("确认要封存单据?")){
					return;
				}
				
				
				$('#callMethod').val('fengcun');
				$("form").submit();
				
			}
			
			$(document).ready(function(){
				$('#userVO\\.bxtime').simpleDatepicker({startdate:2008 , enddate:2015 , x:175 , y:0 });
				$('#userVO\\.xstime').simpleDatepicker({startdate:2008 , enddate:2015 , x:175 , y:0 });
				$('#userVO\\.yytime').simpleDatepicker({startdate:2008 , enddate:2015 , x:175 , y:0 });
				
				$("#userVO\\.mark").textbox({
					maxLength: 50
				});
				
				$("#mark").textbox({
					maxLength: 50
				});
				
 				if($.trim($('#userVO\\.marry').val())=='0'){
						  $('.po :input').attr('readonly','readonly');
							$('.po :input').addClass("readonly"); 
							$('.po :input').val(""); 
							$('.po').hide();
					
				}
				
				
				if($('#userVO\\.id').val()!=''){
					 $('#userVO\\.user_name').attr('readonly','readonly');
					 $('#userVO\\.user_name').addClass("readonly"); 
					 
					 $('#userVO\\.user_sn').attr('readonly','readonly');
					 $('#userVO\\.user_sn').addClass("readonly"); 					
				} 
				
				
				
				<logic:notEqual value="1" name="buser" property="roleid">
					$('.ireadonly :input').attr('readonly','readonly');
					$('.ireadonly :input').addClass("readonly"); 
					
					$('.ireadonly :input').unbind("blur"); 
				</logic:notEqual>
				
				if($('#userVO\\.areaid').val()==''){
					$('#userVO\\.jg').attr("disabled","disabled");
					$('#userVO\\.car').attr("disabled","disabled");
					$('#userVO\\.cllx_rate').attr("disabled","disabled");
					$('#userVO\\.qx').attr("disabled","disabled");
					$('#userVO\\.tcid').attr("disabled","disabled");
					$('#userVO\\.cdfwf').attr("disabled","disabled");
				}
				
				
				
			}); 
			
			function pay(){
				if(!confirm("确认用户已经还款，还款信息添加后将无法删除?")){
					return;
				}
				ajaxAnywhere.submitAJAX("payByMonth", "payZone");
			}
			
		</script>
				
			</aa:zone>

			  <nested:notEmpty property="userVO.bxh">
			<div id="content"  class="row ireadonly">
			  <div class="column grid_16">
			
			  <html:hidden property="over" value="1" />
			   <h4 class="tit">车辆补充信息</h4>
			 	<fieldset>
				<legend>保险信息</legend>
				  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
				  <tr>
				    <td  width="9%" style="text-align:right" >保险号:</td>
				    <td width="16%"><nested:write property="userVO.bxh" /></td>
				    <td width="9%" style="text-align:right">办理时间:</td>
				    <td width="16%"><nested:write property="userVO.bxtime" /></td>
				    <td width="9%" style="text-align:right">办理公司:</td>
				    <td width="16%"><nested:write property="userVO.bxcompany" /></td>
				    <td width="9%" style="text-align:right">办理费用:</td>
				    <td><nested:write property="userVO.bxmoney" /></td>
				  </tr>
				</table>
				</fieldset>	
				
				<nested:notEmpty property="userVO.xsz">
				<fieldset>
				<legend>行驶证信息</legend>
				  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
				  <tr>
				    <td  width="9%" style="text-align:right" >行驶证号:</td>
				    <td width="16%"><nested:write property="userVO.xsz" /></td>
				    <td width="9%" style="text-align:right">办理时间:</td>
				    <td width="16%"><nested:write property="userVO.xstime" /></td>
				    <td width="9%" style="text-align:right">办理公司:</td>
				    <td width="16%"><nested:write property="userVO.xscompany" /></td>
				    <td width="9%" style="text-align:right">办理费用:</td>
				    <td><nested:write property="userVO.xsmoney" /></td>
				  </tr>
				</table>
				</fieldset>	
				</nested:notEmpty>
				
				<nested:notEmpty property="userVO.yyz">
				<fieldset>
				<legend>营运证信息</legend>
				  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
				  <tr>
				    <td  width="9%" style="text-align:right" >营运证号:</td>
				    <td width="16%"><nested:write property="userVO.yyz" /></td>
				    <td width="9%" style="text-align:right">办理时间:</td>
				    <td width="16%"><nested:write property="userVO.yytime" /></td>
				    <td width="9%" style="text-align:right">办理公司:</td>
				    <td width="16%"><nested:write property="userVO.yycompany" /></td>
				    <td width="9%" style="text-align:right">办理费用:</td>
				    <td><nested:write property="userVO.yymoney" /></td>
				  </tr>
				</table>
				</fieldset>	
				</nested:notEmpty>
			  </div>
			</div>

				</nested:notEmpty>
			
			<nested:equal value="8" property="userVO.workflowid">
				<nested:empty property="userVO.bxh">
				<div id="content"  class="row">
			  <div class="column grid_16">
			   <h4 class="tit">车辆补充信息</h4>
			 	<fieldset>
				<legend>保险信息</legend>
				  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
				  <tr>
				    <td  width="9%" style="text-align:right" >保险号:</td>
				    <td width="16%"><html:text property="userVO.bxh" styleClass="input-text"  maxlength="30"	styleId="userVO.bxh" /></td>
				    <td width="9%" style="text-align:right">办理时间:</td>
				    <td width="16%"><html:text property="userVO.bxtime" readonly="true"
								value="点击选择日期" styleClass="readonly width100"
								styleId="userVO.bxtime" /></td>
				    <td width="9%" style="text-align:right">办理公司:</td>
				    <td width="16%"><html:text property="userVO.bxcompany" styleClass="input-text" maxlength="30"
								styleId="userVO.bxcompany" /></td>
				    <td width="9%" style="text-align:right">办理费用:</td>
				    <td width="16%"><html:text property="userVO.bxmoney" styleClass="input-text"  maxlength="10"
								styleId="userVO.bxmoney" /></td>
				  </tr>
				</table>
				</fieldset>	
				
			<fieldset>
				<legend>行驶证信息</legend>
				  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
				  <tr>
				    <td  width="9%" style="text-align:right" >行驶证号:</td>
				    <td width="16%"><html:text property="userVO.xsz" styleClass="input-text"  maxlength="30"	styleId="userVO.xsz" /></td>
				    <td width="9%" style="text-align:right">办理时间:</td>
				    <td width="16%"><html:text property="userVO.xstime" readonly="true"
								value="点击选择日期" styleClass="readonly width100"
								styleId="userVO.xstime" /></td>
				    <td width="9%" style="text-align:right">办理公司:</td>
				    <td width="16%"><html:text property="userVO.xscompany" styleClass="input-text"  maxlength="30"
								styleId="userVO.xscompany" /></td>
				    <td width="9%" style="text-align:right">办理费用:</td>
				    <td width="16%"><html:text property="userVO.xsmoney" styleClass="input-text"  maxlength="10"
								styleId="userVO.xsmoney" /></td>
				  </tr>
				</table>
				</fieldset>	
				
				<fieldset>
				<legend>营运证信息</legend>
				  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
				  <tr>
				    <td  width="9%" style="text-align:right" >营运证号:</td>
				    <td width="16%"><html:text property="userVO.yyz" styleClass="input-text"  maxlength="30"	styleId="userVO.yyz" /></td>
				    <td width="9%" style="text-align:right">办理时间:</td>
				    <td width="16%"><html:text property="userVO.yytime" readonly="true"
								value="点击选择日期" styleClass="readonly width100"
								styleId="userVO.yytime" /></td>
				    <td width="9%" style="text-align:right">办理公司:</td>
				    <td width="16%"><html:text property="userVO.yycompany" styleClass="input-text"  maxlength="30"
								styleId="userVO.yycompany" /></td>
				    <td width="9%" style="text-align:right">办理费用:</td>
				    <td width="16%"><html:text property="userVO.yymoney" styleClass="input-text"  maxlength="10"
								styleId="userVO.yymoney" /></td>
				  </tr>
				</table>
				</fieldset>	
			  </div>
			</div>
				
				</nested:empty>
			
			
			

			</nested:equal>



			<logic:equal value="1" name="buser" property="roleid">
			<div id="content"  class="row ireadonly">
			  <div class="column grid_16">
			   <h4 class="tit">意见栏</h4>
			   <html:textarea property="mark" styleId="mark" style="width:99%;margin-bottom:10px;" rows="3" />
			   </div>
		   </div>
			
			<br>

				<div style="text-align: center;">
					<input type="button" class="input-submit"  onclick="checkValue();" value="提交审批" />
				</div>
				<br>
			</logic:equal>

			<logic:greaterEqual value="2" name="buser" property="roleid">
				<logic:notEqual value="7" name="buser" property="roleid">
				
				<div id="content"  class="row ">
				  <div class="column grid_16">
				   <h4 class="tit">审批操作</h4>
				   <div>
				    <table class="nostyle">
				   <tr>
				   <td>
				   <input name="approveStatus" checked="checked"
								type="radio" value="1">审批通过</label>
							<logic:notEqual value="6" name="buser" property="roleid">
			&nbsp;<label><input name="approveStatus" type="radio" 
									value="0">退回</label>
							</logic:notEqual>
							<logic:equal value="5" name="buser" property="roleid">	
			&nbsp;<label><input name="approveStatus" type="radio"
									value="-1">作废</label>
							</logic:equal>
				   </td>
				   </tr>
				   </table>
				   
				   
				   </div>
				   <html:textarea property="mark" styleId="mark"
								styleClass="input-text font12" rows="5" style="margin-bottom:10px;width:99%;"/></textarea>	
				  </div>
				  
				</div>
				
			
				</logic:notEqual>
				<logic:equal value="7" name="buser" property="roleid">
					<input name="approveStatus" type="hidden" value="1">
				</logic:equal>
				<br>
				<table width="99%">
				<tr>
					<td style="text-align: center;width:95%">
					<nested:empty property="userVO.bxh">
						<input type="button"  class="input-submit"  onclick="approveUser();" value="确定" />&nbsp;&nbsp;&nbsp;
					</nested:empty>
					<input type="button"  class="input-submit" onclick="returnToList();" value="返回" />
					</td>
					
					<logic:equal value="7" name="buser" property="roleid">
						<td>
						<input type="button"  class="input-submit" onclick="fengcun();" value="封存单据" />
						</td>
					</logic:equal>
				</tr>
				</table>
			
				<br>

			</logic:greaterEqual>


		</div>
		<nested:equal value="8" property="userVO.workflowid">
		<aa:zone name="payZone">
					<html:hidden property="userVO.id" />

					
					<div id="content"  class="row">
				  <div class="column grid_16">
				   <h4 class="tit">还款信息</h4>
					<fieldset>
				<legend>已还款月份</legend>
				<logic:notEmpty name="payList">
				  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="nostyle">
				  <tr><td>
				  <nested:iterate id="pay" name="payList" indexId="payIndex">
				  
				  
							
								<nested:write name="pay" property="year" />/<nested:write	name="pay" property="month" />(<nested:write	name="pay" property="submit_time" />),
			<nested:equal value="15" name="payIndex">
									<br>
								</nested:equal>

							</nested:iterate></td>
				  </tr>
				</table>
				</logic:notEmpty>
				</fieldset>	
				<logic:equal name="existPay" value="1">
						<script type="text/javascript">
			alert("选择的还款日期已经在系统内维护过了！");		
		</script>

					</logic:equal>



					<logic:equal value="7" name="buser" property="roleid"	scope="session">
								请选择还款年份：
								<html:select property="hknf">
									<html:option value="2011">2011</html:option>
									<html:option value="2012">2012</html:option>
									<html:option value="2013">2013</html:option>
									<html:option value="2014">2014</html:option>
									<html:option value="2015">2015</html:option>
								</html:select>
&nbsp;&nbsp;&nbsp;

				
								请选择还款月份：
								<html:select property="hkyf">
									<html:option value="1">1</html:option>
									<html:option value="2">2</html:option>
									<html:option value="3">3</html:option>
									<html:option value="4">4</html:option>
									<html:option value="5">5</html:option>
									<html:option value="6">6</html:option>
									<html:option value="7">7</html:option>
									<html:option value="8">8</html:option>
									<html:option value="9">9</html:option>
									<html:option value="10">10</html:option>
									<html:option value="11">11</html:option>
									<html:option value="12">12</html:option>
								</html:select>&nbsp;&nbsp;&nbsp;
								<input type="button" value="确认还款" onclick="pay()" />
					</logic:equal>
				</div>
				</div>	
						
					

					
				</aa:zone>
				</nested:equal>
		
	</html:form>
	<logic:notEmpty name="logList">
	<div id="content"  class="row">
  <div class="column grid_16">
   <h4 class="tit">操作日志</h4>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">	 	 	 	 	 	 	 	
 <tr>
	<th width="15%">时间</th>
	<th width="20%">操作</th>
	<th width="15%">操作人联系方式</th>
	<th>备注</th>
</tr>
 <nested:iterate id="logVO" name="logList">
						<tr>
							<td>
<nested:write name="logVO" property="log_time"/>
							</td>
							<td style="text-align: left;"><nested:write name="logVO"
									property="log" /></td>
							<td style="text-align: left;"><nested:write name="logVO"
									property="phone" /></td>
							<td style="text-align: left;"><nested:write name="logVO"
									property="mark" />
							</td>


						</tr>
					</nested:iterate>

</table>
<br />
  </div>
</div>
	
	
	
	
			</logic:notEmpty>
	
	

</body>
</html>